package org.pine.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 基础扩展字段
 *
 * @author pine
 * @version v1.0
 * @since 2025-04-12 14:18
 */
@Data
public class BaseExtendFields<ID> implements Serializable {
    @Serial
    private static final long serialVersionUID = 5454060546403774320L;

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private ID id;

    @Schema(description = "创建人")
    private String createUser;

    @Schema(description = "创建人ID")
    private ID createUserId;

    @Schema(description = "更新人")
    private String updateUser;

    @Schema(description = "更新人ID")
    private ID updateUserId;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
}
